package cn.sgjk.train.business.controller;


import cn.sgjk.train.business.service.HelloTest;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {


    @Autowired
    private HelloTest helloTest;


    @SentinelResource(value = "Hello")
    @GetMapping("/Hello")
    public String Hello() {
        helloTest.hello2();
        return "Hello World--Business";
    }


    @GetMapping("/Hello2")
    public String Hello2() {
        return "Hello World--Business";
    }

}

